package com.ruoyi.project.credentials.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 用户证书对象 credentials
 * 
 * @author chenweiguo
 * @date 2020-05-05
 */
public class Credentials extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 证书id */
    private Long credentialsId;

    /** 证书类型id */
    @Excel(name = "证书类型id")
    private Long credentialsTypeId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 证书上传时保存的名称 */
    @Excel(name = "证书上传时保存的名称")
    private String credentialsName;

    /** 证书状态（0正常 1停用） */
    @Excel(name = "证书状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 证书类型名称
     *
     */
    private String credentialsType;
    /**
     * 用户姓名
     *
     */
    private String userName;
    /**
     * 证书级别
     */
    private String credentialsTypeLeave;

    public String getCredentialsType() {
        return credentialsType;
    }

    public void setCredentialsType(String credentialsType) {
        this.credentialsType = credentialsType;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCredentialsTypeLeave() {
        return credentialsTypeLeave;
    }

    public void setCredentialsTypeLeave(String credentialsTypeLeave) {
        this.credentialsTypeLeave = credentialsTypeLeave;
    }

    public void setCredentialsId(Long credentialsId)
    {
        this.credentialsId = credentialsId;
    }

    public Long getCredentialsId() 
    {
        return credentialsId;
    }
    public void setCredentialsTypeId(Long credentialsTypeId) 
    {
        this.credentialsTypeId = credentialsTypeId;
    }

    public Long getCredentialsTypeId() 
    {
        return credentialsTypeId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCredentialsName(String credentialsName) 
    {
        this.credentialsName = credentialsName;
    }

    public String getCredentialsName() 
    {
        return credentialsName;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("credentialsId", getCredentialsId())
            .append("credentialsTypeId", getCredentialsTypeId())
            .append("userId", getUserId())
            .append("credentialsName", getCredentialsName())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
